import Vue from 'vue'
import App from './App.vue'
import router from './router'
import request from './common/request';
import { Tabbar, TabbarItem } from 'vant';
import { Search } from 'vant';
import store from './store'

import { Swipe, SwipeItem } from 'vant';
import { Image as VanImage,Lazyload } from 'vant';
import { NavBar , List} from 'vant';
import { Tab, Tabs } from 'vant';

Vue.use(Tab);
Vue.use(Tabs);

Vue.use(VanImage);
Vue.use(Lazyload);

Vue.use(Swipe);
Vue.use(SwipeItem);

Vue.use(Search);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(List);

Vue.config.productionTip = false
Vue.prototype.$request = request.httpRequest

//全局过滤器
Vue.filter("numFilter",function (value,num) {
  return parseFloat(value/10000).toFixed(num)
  })

//4.把路由实例挂载到vue 实例
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
